// 引入工具类
import axios from '../config'

// 使用
const URL = 'api-ftp' // 公共前缀地址
export const adjRule = {

	
	findAdjDefList(data) {
		return axios.post(URL + '/ftp/adjustDefinition/findAdjustDefinitionAllList', data)
	},
	//导出
	exp(data){
		return axios.exportFile(URL + '/ftp/adjustDefinition/exp', data,false)
	},
	//导入
	imp(data){
		return axios.fileUpload(URL + '/ftp/adjustDefinition/imp', data,false)
	},
	checkUsing(data) {
		return axios.post(URL + '/ftp/adjustDefinition/checkUsing', data)
	},
	

	//分页查询 查询所有业务元素
	findAll(data) {
		return axios.post(URL + '/ftp/adjRule/findAll', data)
	},
	save(data) {
		return axios.post(URL + '/ftp/adjRule/save', data)
	},
	findAdjRuleByCode(data) {
		return axios.post(URL + '/ftp/adjRule/findAdjRuleByCode', data)
	},
	remove(data) {
		return axios.post(URL + '/ftp/adjRule/remove', data)
	},
	//检查原始期限是否已经存在
	checkUniqueOrgTerm(data) {
		return axios.post(URL + '/ftp/adjRule/checkUniqueOrgTerm', data)
	},
	toForm(data) {
		return axios.post(URL + '/ftp/adjRule/toForm', data)
	},
	//查询历史
	findHistory(data){
		return axios.post(URL + '/ftp/adjRule/findHistory', data)
	},
	//根据调整项定义AdjId查询对应的调整项
	findAdjRuleListByAdjId(data){
		return axios.post(URL + '/ftp/adjRule/findAdjRuleListByAdjId', data)
	},
	//导出
	expAdjRule(data){
		return axios.exportFile(URL + '/ftp/adjRule/exp', data,false)
	},
	//导入
	impAdjRule(data){
		return axios.fileUpload(URL + '/ftp/adjRule/imp', data,false)
	},



	//查询调整项规则树
	adjRuleGroupTree(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/adjRuleGroupTree', data)
	},
	//删除规则组
	adjRuleGroupRemove(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/remove', data)
	},
	//保存规则组
	adjRuleGroupSave(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/save', data)
	},
	//跳转ToForm
	toFormGroup(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/toForm', data)
	},
	//checkCode
	checkCode(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/checkCode', data)
	},
	//检查名称是否重复
	checkNameUnique(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/checkNameUnique', data)
	},
	//规则组是否被情景引用
	checkUsingGroup(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/checkUsing', data)
	},
	//根据调整项定义AdjId查询下拉框列表
	findAdjRuleGroupList4Combox(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/findAdjRuleGroupList4Combox', data)
	},
	
	findAdjRuleGroupListByAdjId(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/findAdjRuleGroupListByAdjId', data)
	},
	findAdjRuleGroupTree(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/findAdjRuleGroupTree', data)
	},
	findAllList(data) {
		return axios.post(URL + '/ftp/adjRuleGroup/findAllList', data)
	},


}




